﻿<%@ Page Title="" Language="C#" AutoEventWireup="true" Inherits="System.Web.Mvc.ViewPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="<%= Utils.RelativeWebRoot %>Content/tiny_mce/tiny_mce.js" type="text/javascript"></script>
   <script type="text/javascript" language="javascript">
        tinyMCE.init({
            mode: "exact",
            elements: "Content",
            language: "zh",
            width: "100%",
            height: "400px",
            theme: "advanced",
            plugins: "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print,contextmenu,inlinepopups",
            theme_advanced_buttons1_add_before: "save,separator",
            theme_advanced_buttons1_add: "fontselect,fontsizeselect",
            theme_advanced_buttons2_add: "separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor",
            theme_advanced_buttons2_add_before: "cut,copy,paste,separator,search,replace,separator",
            theme_advanced_buttons3_add_before: "tablecontrols,separator",
            theme_advanced_buttons3_add: "emotions,iespell,flash,advhr,separator,print",
            theme_advanced_toolbar_location: "top",
            theme_advanced_toolbar_align: "left",
            theme_advanced_path_location: "bottom",
            plugin_insertdate_dateFormat: "%Y-%m-%d",
            plugin_insertdate_timeFormat: "%H:%M:%S",
            extended_valid_elements: "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
            external_link_list_url: "example_data/example_link_list.js",
            external_image_list_url: "example_data/example_image_list.js",
            flash_external_list_url: "example_data/example_flash_list.js"
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <ul id="submenu">
        <li><%= Html.ActionLink("管理随笔", "PostManage", "Admin", null, new{ id="managepost" }) %></li>
        <li><%= Html.ActionLink("写新随笔", "NewPost", "Admin", null, new{ id="newpost" }) %></li>
        <li><a href='#' title="may be later?? page for example">更多</a></li>
    </ul>
    
    <h2>写新随笔</h2>
    <% Html.RenderPartial("_PostForm"); %>
    
    <script type="text/javascript" language="javascript">
        SetCurrentTag("postmanage");
        SetCurrentTag("newpost");
    </script>
</asp:Content>
